<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'index.jsp' starting page</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--引用CSS-->
	<link rel="stylesheet" type="text/css" href="css/mycss.css">
	
  </head>
  
  <body>
  <table width="773" height="787" border="0" align="center">
  
  <tr>
    <td height="112" colspan="2"><div align="center">
    <!--引入head.jsp到主界面来  -->
    <jsp:include flush="true" page="head.jsp"></jsp:include>
    </div></td>
  </tr>
  
  
  
  <tr>
    <td width="25%" height="500" valign="top" bgcolor="8CCBF6">
    <jsp:include flush="true" page="leftAdmin.jsp"></jsp:include>
    </td>
    
    
    <td width="75%" valign="top"><div align="center" >   
    
    <br><br>
    <h1>所有的公司</h1>
    <br><br>
    <table width="80%" border="1"  align="center">
    <tr>
            
        <td width="" align="center">公司名称</td>
        <td width="" align="center">公司位置</td>
        <td width="" align="center">公司网址</td>
        <td width="" align="center">公司招聘邮箱</td>
        <td width="" align="center">公司简介</td>
        <td width="" align="center">修改?</td>
        <td width="" align="center">删除?</td>         
    </tr>
    
    
    
    <s:iterator value="list_com">
    <tr>
    	
       <td><font size="4"><s:a href="getSingleCom.action?com_id=%{com_id}"><s:property value="com_name"/></s:a></font></td>
       <td><font size="4"><s:property value="com_location"/></font></td>
       <td><font size="4"><s:property value="com_website"/></font></td>
       <td><font size="4"><s:property value="com_email"/></font></td>
       <td><font size="4"><s:property value="com_context"/></font></td>
      <td><s:a href="updateComToJsp.action?com_id=%{com_id}">修改</s:a></td>
      <td><s:a href="deleteCom.action?com_id=%{com_id}" onclick="return del();">删除</s:a></td>
     
    </tr>
    </s:iterator>
   </table>




   </div></td>
  </tr>
  
  
  <tr>
    <td colspan="2"><div align="center">
     <jsp:include flush="true" page="tail.jsp"></jsp:include>
    </div></td>
  </tr>
    
  
</table>
  </body>
</html>
